<?php
header('content-type:text/html;charset=utf-8');
$u = $_GET['username'];
$p = $_GET['password'];

$link = mysqli_connect('localhost','root','','a');
mysqli_set_charset($link,'utf8');
$sql = "select * from user5 where name = '$u' and age = $p";
$result = mysqli_query($link,$sql);
if($row = mysqli_fetch_row($result)){
   // 创建cookie
    // setcookie('name1',$u,120);
    echo "1";
}else{
    echo "0";
}


?>